<?php

function afficherMembres($promo){
    echo <<<END

    <div class='promojtx'>
        <h2>{$promo}</h2>
END;
    connect();
    $requete = "SELECT * FROM `User` WHERE `promo` = \"{$promo}\" AND `poste` != \"\" ORDER BY nom;";
    $reponse = executerRequete($requete, $GLOBALS['debug']);
    while ($resultat = mysql_fetch_assoc($reponse)) {
        echo <<<END

            <div class="membre">
<a class="edition" href="index.php?page=user&pseudo={$resultat['pseudo']}">{$resultat['prenom']} {$resultat['nom']} ({$resultat['pseudo']})<br/>
<img src="http://www.polytechnique.fr/eleves/trombino.php?image=true&login={$resultat['login_poly']}&promo={$resultat['promo']}"/><br/>
{$resultat['poste']}<br/></a>
<a href="mailto:{$resultat['email']}" class="email">{$resultat['email']}</a>
            </div>

END;
    }
    echo "</div>";
}




?>
